import type {
  ApplianceCommand,
  ApplianceDetail,
  ApplianceProgram,
  ApplianceSetting,
  HistoryProgram,
} from '@/api/appliance'
import netconfig from '@/config/netconfig'
import { DemoDishwasher } from '../list'
import type { DemoAvailableParameter, DemoDatasource, DemoDetailSettings } from '../types'

/**
 * 详情
 */
export const DemoDetail: ApplianceDetail = {
  ...DemoDishwasher,
  enumber: 'SJ75ZX00MC/01',
  fd: '8888',
  zn: '88888',
  usageReport: true,
  installable: true,
  guest: false,
  photo: `${netconfig.PHOTO_IMAGE}SJ75ZX00MC/SJ75ZX00MC.png`,
  programKey: 'Dishcare.Dishwasher.Program.MagicDaily',
  programName: null,
  option: null,
  zh: '洗碗机',
}

/**
 * 配置
 */
export const DemoSettings: Array<ApplianceSetting> = [
  {
    key: 'BSH.Common.Setting.AllowBackendConnection',
    value: true,
    name: '连接至服务器',
    mediumDescription: '确定是否允许家电与晶御智能服务器建立连接。',
  },
  {
    key: 'BSH.Common.Setting.PowerState',
    value: 'BSH.Common.EnumType.PowerState.Off',
    name: '电源状态',
    displayvalue: '关闭',
    mediumDescription: '显示家电的电源状态。',
  },
  {
    key: 'BSH.Common.Setting.RemoteControlLevel',
    value: 'BSH.Common.EnumType.RemoteControlLevel.ManualRemoteStart',
    name: '远程控制等级',
    displayvalue: '手动开启远程启动',
    mediumDescription:
      '1、监控：只可以远程查看家电状态，无法远程启动或操作家电。 2、手动开启： 必须在每次打开门后按下家电上的“远程启动”按钮，才可以远程启动和控制家电。 3、永久开启 ：您可以随时启动和控制家电，而无需在家电上按下任何按钮。选择后，需在10分钟之内按下洗碗机上闪烁的按键完成设定。\n警告 - 请勿在家用电器中存放任何可能在使用或操作过程中被损坏的物体！ 使用远程启动功能时应始终小心。',
  },
  {
    key: 'Dishcare.Dishwasher.Setting.RinseAid',
    value: 'Dishcare.Dishwasher.EnumType.RinseAid.R05',
    name: '漂洗剂设置',
    displayvalue: '级别5',
    mediumDescription: '设置较高可以减少水痕。设置较低可以减少纹路。建议使用默认级别。',
  },
  {
    key: 'Dishcare.Dishwasher.Setting.ExtraDry',
    value: false,
    name: '加强烘干',
    mediumDescription: '加强烘干，用于玻璃类和塑料餐具。',
  },
  {
    key: 'BSH.Common.Setting.Time.DisplayMode',
    value: 'BSH.Common.EnumType.Time.DisplayMode.Absolute',
    name: '时间显示模式',
    displayvalue: '绝对显示',
    mediumDescription: '设置是否在家电上显示相对的（例如，在10分钟内）或绝对的（例如在9：00h）时间信息',
  },
  {
    key: 'BSH.Common.Setting.ApplianceDateTime',
    value: '2023-06-14T00:10:27',
    name: '设置日期和时间',
    mediumDescription: '设置当前日期和时间。',
  },
  {
    key: 'BSH.Common.Setting.SynchronizeWithTimeServer',
    value: false,
    name: '自动获取时间',
    mediumDescription: '确定是否由时间服务器自动调整时间。',
  },
  {
    key: 'BSH.Common.Setting.TimeFormat',
    value: 'BSH.Common.EnumType.TimeFormat.24Hours',
    name: '时间格式',
    displayvalue: '24小时',
    mediumDescription: '12小时或24小时制。',
  },
  {
    key: 'Dishcare.Dishwasher.Setting.EcoPrognosis',
    value: false,
    name: '能耗预测',
    mediumDescription: '显示用水量和用电量。',
  },
  {
    key: 'Dishcare.Dishwasher.Setting.BrandLogo',
    value: true,
    name: '欢迎界面',
    mediumDescription: '当开启机器时，可选择不显示品牌标志。',
  },
  {
    key: 'BSH.Common.Setting.Language',
    value: 'BSH.Common.EnumType.Language.Zh',
    name: '设置语言',
    displayvalue: '简体中文',
    mediumDescription: '设置您所需的语言。',
  },
  {
    key: 'Dishcare.Dishwasher.Setting.SensitivityTurbidity',
    value: 'Dishcare.Dishwasher.EnumType.SensitivityTurbidityAdjustement.Standard',
    name: '传感器设置',
    displayvalue: '标准',
    mediumDescription: '调节污浊度传感器灵敏度，以优化清洁结果。',
  },
  {
    key: 'Dishcare.Dishwasher.Setting.EcoAsDefault',
    value: 'Dishcare.Dishwasher.EnumType.EcoAsDefault.MagicDailyAsDefault',
    name: '启动程序',
    displayvalue: '日常洗',
    mediumDescription: '在开启后，将显示上一次所选的程序。',
  },
  {
    key: 'Dishcare.Dishwasher.Setting.SoundLevelSignal',
    value: 'Dishcare.Dishwasher.EnumType.SignalSoundLevel.Medium',
    name: '提示音音量',
    displayvalue: '中',
    mediumDescription: '程序结束时的信号音量。',
  },
  {
    key: 'Dishcare.Dishwasher.Setting.SoundLevelKey',
    value: 'Dishcare.Dishwasher.EnumType.KeySoundLevel.Medium',
    name: '按键音量',
    displayvalue: '中',
    mediumDescription: '按键时的音量。',
  },
  {
    key: 'Dishcare.Dishwasher.Setting.WaterHardness',
    value: 'Dishcare.Dishwasher.EnumType.WaterHardness.H04',
    name: '水硬度',
    displayvalue: '°dH 13-16 中等水 (2,2-2,9 mmol/l)',
    mediumDescription: '设置水硬度。使用3合1洗涤块时，请选择最低档设置。',
  },
  {
    key: 'Dishcare.Dishwasher.Setting.InfoLight',
    value: true,
    name: '信息灯',
    mediumDescription: '灯光表示冲洗程序正在进行中。',
  },
  {
    key: 'Dishcare.Dishwasher.Setting.SpeedOnDemand',
    value: false,
    name: '加速省时',
    mediumDescription: '附加功能在程序运行中可以随时被激活。',
  },
  {
    key: 'Dishcare.Dishwasher.Setting.FlexSpray.Custom.FrontLeft',
    value: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
    name: '前左方',
    displayvalue: '强力',
    mediumDescription: '前左方',
  },
  {
    key: 'Dishcare.Dishwasher.Setting.FlexSpray.Custom.BackLeft',
    value: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
    displayvalue: '强力',
  },
  {
    key: 'Dishcare.Dishwasher.Setting.FlexSpray.Custom.BackRight',
    value: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
    displayvalue: '强力',
  },
  {
    key: 'Dishcare.Dishwasher.Setting.FlexSpray.Custom.FrontRight',
    value: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
    displayvalue: '强力',
  },
]
export const DemoSettingsAvailable: DemoDetailSettings = {
  'BSH.Common.Setting.AllowBackendConnection': {
    name: '连接至服务器',
    key: 'BSH.Common.Setting.AllowBackendConnection',
    constraints: {
      access: 'readWrite',
    },
    type: 'Boolean',
    value: true,
    mediumDescription: '确定是否允许家电与晶御智能服务器建立连接。',
  },
  'BSH.Common.Setting.PowerState': {
    name: '电源状态',
    key: 'BSH.Common.Setting.PowerState',
    constraints: {
      allowedvalues: ['BSH.Common.EnumType.PowerState.Off', 'BSH.Common.EnumType.PowerState.On'],
      displayvalues: ['关闭', '开启'],
      access: 'readWrite',
    },
    type: 'BSH.Common.EnumType.PowerState',
    displayvalue: '关闭',
    value: 'BSH.Common.EnumType.PowerState.Off',
    mediumDescription: '显示家电的电源状态。',
  },
  'BSH.Common.Setting.RemoteControlLevel': {
    name: '远程控制等级',
    key: 'BSH.Common.Setting.RemoteControlLevel',
    constraints: {
      allowedvalues: [
        'BSH.Common.EnumType.RemoteControlLevel.Monitoring',
        'BSH.Common.EnumType.RemoteControlLevel.ManualRemoteStart',
        'BSH.Common.EnumType.RemoteControlLevel.PermanentRemoteStart',
      ],
      displayvalues: ['仅监控', '手动开启远程启动', '永久开启远程启动'],
      access: 'readWrite',
    },
    type: 'BSH.Common.EnumType.RemoteControlLevel',
    displayvalue: '手动开启远程启动',
    value: 'BSH.Common.EnumType.RemoteControlLevel.ManualRemoteStart',
    mediumDescription:
      '1、监控：只可以远程查看家电状态，无法远程启动或操作家电。 2、手动开启： 必须在每次打开门后按下家电上的“远程启动”按钮，才可以远程启动和控制家电。 3、永久开启 ：您可以随时启动和控制家电，而无需在家电上按下任何按钮。选择后，需在10分钟之内按下洗碗机上闪烁的按键完成设定。\n警告 - 请勿在家用电器中存放任何可能在使用或操作过程中被损坏的物体！ 使用远程启动功能时应始终小心。',
  },
  'Dishcare.Dishwasher.Setting.RinseAid': {
    name: '漂洗剂设置',
    key: 'Dishcare.Dishwasher.Setting.RinseAid',
    constraints: {
      allowedvalues: [
        'Dishcare.Dishwasher.EnumType.RinseAid.Off',
        'Dishcare.Dishwasher.EnumType.RinseAid.R01',
        'Dishcare.Dishwasher.EnumType.RinseAid.R02',
        'Dishcare.Dishwasher.EnumType.RinseAid.R03',
        'Dishcare.Dishwasher.EnumType.RinseAid.R04',
        'Dishcare.Dishwasher.EnumType.RinseAid.R05',
        'Dishcare.Dishwasher.EnumType.RinseAid.R06',
      ],
      displayvalues: ['级别0', '级别1', '级别2', '级别3', '级别4', '级别5', '级别6'],
      access: 'readWrite',
    },
    type: 'Dishcare.Dishwasher.EnumType.RinseAid',
    displayvalue: '级别5',
    value: 'Dishcare.Dishwasher.EnumType.RinseAid.R05',
    mediumDescription: '设置较高可以减少水痕。设置较低可以减少纹路。建议使用默认级别。',
  },
  'Dishcare.Dishwasher.Setting.ExtraDry': {
    name: '加强烘干',
    key: 'Dishcare.Dishwasher.Setting.ExtraDry',
    constraints: {
      access: 'readWrite',
    },
    type: 'Boolean',
    value: false,
    mediumDescription: '加强烘干，用于玻璃类和塑料餐具。',
  },
  'BSH.Common.Setting.Time.DisplayMode': {
    name: '时间显示模式',
    key: 'BSH.Common.Setting.Time.DisplayMode',
    constraints: {
      allowedvalues: ['BSH.Common.EnumType.Time.DisplayMode.Relative', 'BSH.Common.EnumType.Time.DisplayMode.Absolute'],
      displayvalues: ['相对显示', '绝对显示'],
      access: 'readWrite',
    },
    type: 'BSH.Common.EnumType.Time.DisplayMode',
    displayvalue: '绝对显示',
    value: 'BSH.Common.EnumType.Time.DisplayMode.Absolute',
    mediumDescription: '设置是否在家电上显示相对的（例如，在10分钟内）或绝对的（例如在9：00h）时间信息',
  },
  'BSH.Common.Setting.ApplianceDateTime': {
    name: '设置日期和时间',
    key: 'BSH.Common.Setting.ApplianceDateTime',
    constraints: {
      access: 'readWrite',
    },
    type: 'String',
    value: '2023-06-14T00:10:27',
    mediumDescription: '设置当前日期和时间。',
  },
  'BSH.Common.Setting.SynchronizeWithTimeServer': {
    name: '自动获取时间',
    key: 'BSH.Common.Setting.SynchronizeWithTimeServer',
    constraints: {
      access: 'readWrite',
    },
    type: 'Boolean',
    value: false,
    mediumDescription: '确定是否由时间服务器自动调整时间。',
  },
  'BSH.Common.Setting.TimeFormat': {
    name: '时间格式',
    key: 'BSH.Common.Setting.TimeFormat',
    constraints: {
      allowedvalues: ['BSH.Common.EnumType.TimeFormat.24Hours', 'BSH.Common.EnumType.TimeFormat.12Hours'],
      displayvalues: ['24小时', '12小时'],
      access: 'readWrite',
    },
    type: 'BSH.Common.EnumType.TimeFormat',
    displayvalue: '24小时',
    value: 'BSH.Common.EnumType.TimeFormat.24Hours',
    mediumDescription: '12小时或24小时制。',
  },
  'Dishcare.Dishwasher.Setting.EcoPrognosis': {
    name: '能耗预测',
    key: 'Dishcare.Dishwasher.Setting.EcoPrognosis',
    constraints: {
      access: 'readWrite',
    },
    type: 'Boolean',
    value: false,
    mediumDescription: '显示用水量和用电量。',
  },
  'Dishcare.Dishwasher.Setting.BrandLogo': {
    name: '欢迎界面',
    key: 'Dishcare.Dishwasher.Setting.BrandLogo',
    constraints: {
      access: 'readWrite',
    },
    type: 'Boolean',
    value: true,
    mediumDescription: '当开启机器时，可选择不显示品牌标志。',
  },
  'BSH.Common.Setting.Language': {
    name: '设置语言',
    key: 'BSH.Common.Setting.Language',
    constraints: {
      allowedvalues: [
        'BSH.Common.EnumType.Language.Cs',
        'BSH.Common.EnumType.Language.Da',
        'BSH.Common.EnumType.Language.De',
        'BSH.Common.EnumType.Language.El',
        'BSH.Common.EnumType.Language.En',
        'BSH.Common.EnumType.Language.EnUs',
        'BSH.Common.EnumType.Language.Es',
        'BSH.Common.EnumType.Language.EsMx',
        'BSH.Common.EnumType.Language.Fi',
        'BSH.Common.EnumType.Language.Fr',
        'BSH.Common.EnumType.Language.FrCa',
        'BSH.Common.EnumType.Language.Hr',
        'BSH.Common.EnumType.Language.Hu',
        'BSH.Common.EnumType.Language.It',
        'BSH.Common.EnumType.Language.Nl',
        'BSH.Common.EnumType.Language.No',
        'BSH.Common.EnumType.Language.Pl',
        'BSH.Common.EnumType.Language.Pt',
        'BSH.Common.EnumType.Language.Ro',
        'BSH.Common.EnumType.Language.Ru',
        'BSH.Common.EnumType.Language.Sk',
        'BSH.Common.EnumType.Language.Sl',
        'BSH.Common.EnumType.Language.Sv',
        'BSH.Common.EnumType.Language.Tr',
        'BSH.Common.EnumType.Language.Uk',
        'BSH.Common.EnumType.Language.Zh',
      ],
      displayvalues: [
        '捷克语',
        '丹麦语',
        '德语',
        '现代希腊语',
        '英语',
        '英语（美国）',
        '西班牙语',
        '墨西哥西班牙语',
        '芬兰语',
        '法语',
        '法语（加拿大）',
        '克罗地亚语',
        '匈牙利语',
        '意大利语',
        '荷兰语',
        '挪威语',
        '波兰语',
        '葡萄牙语',
        '罗马尼亚语',
        '俄语',
        '斯洛伐克语',
        '斯洛文尼亚语',
        '瑞典语',
        '土耳其语',
        '乌克兰语',
        '简体中文',
      ],
      access: 'readWrite',
    },
    type: 'BSH.Common.EnumType.Language',
    displayvalue: '简体中文',
    value: 'BSH.Common.EnumType.Language.Zh',
    mediumDescription: '设置您所需的语言。',
  },
  'Dishcare.Dishwasher.Setting.SensitivityTurbidity': {
    name: '传感器设置',
    key: 'Dishcare.Dishwasher.Setting.SensitivityTurbidity',
    constraints: {
      allowedvalues: [
        'Dishcare.Dishwasher.EnumType.SensitivityTurbidityAdjustement.Standard',
        'Dishcare.Dishwasher.EnumType.SensitivityTurbidityAdjustement.Sensitive',
        'Dishcare.Dishwasher.EnumType.SensitivityTurbidityAdjustement.VerySensitive',
      ],
      displayvalues: ['标准', '灵敏', '非常灵敏'],
      access: 'readWrite',
    },
    type: 'Dishcare.Dishwasher.EnumType.SensitivityTurbidityAdjustement',
    displayvalue: '标准',
    value: 'Dishcare.Dishwasher.EnumType.SensitivityTurbidityAdjustement.Standard',
    mediumDescription: '调节污浊度传感器灵敏度，以优化清洁结果。',
  },
  'Dishcare.Dishwasher.Setting.EcoAsDefault': {
    name: '启动程序',
    key: 'Dishcare.Dishwasher.Setting.EcoAsDefault',
    constraints: {
      allowedvalues: [
        'Dishcare.Dishwasher.EnumType.EcoAsDefault.LastProgram',
        'Dishcare.Dishwasher.EnumType.EcoAsDefault.MagicDailyAsDefault',
      ],
      displayvalues: ['上次选用的程序', '日常洗'],
      access: 'readWrite',
    },
    type: 'Dishcare.Dishwasher.EnumType.EcoAsDefault',
    displayvalue: '日常洗',
    value: 'Dishcare.Dishwasher.EnumType.EcoAsDefault.MagicDailyAsDefault',
    mediumDescription: '在开启后，将显示上一次所选的程序。',
  },
  'Dishcare.Dishwasher.Setting.SoundLevelSignal': {
    name: '提示音音量',
    key: 'Dishcare.Dishwasher.Setting.SoundLevelSignal',
    constraints: {
      allowedvalues: [
        'Dishcare.Dishwasher.EnumType.SignalSoundLevel.Off',
        'Dishcare.Dishwasher.EnumType.SignalSoundLevel.Low',
        'Dishcare.Dishwasher.EnumType.SignalSoundLevel.Medium',
        'Dishcare.Dishwasher.EnumType.SignalSoundLevel.High',
      ],
      displayvalues: ['关', '低', '中', '高'],
      access: 'readWrite',
    },
    type: 'Dishcare.Dishwasher.EnumType.SignalSoundLevel',
    displayvalue: '中',
    value: 'Dishcare.Dishwasher.EnumType.SignalSoundLevel.Medium',
    mediumDescription: '程序结束时的信号音量。',
  },
  'Dishcare.Dishwasher.Setting.SoundLevelKey': {
    name: '按键音量',
    key: 'Dishcare.Dishwasher.Setting.SoundLevelKey',
    constraints: {
      allowedvalues: [
        'Dishcare.Dishwasher.EnumType.KeySoundLevel.Off',
        'Dishcare.Dishwasher.EnumType.KeySoundLevel.Low',
        'Dishcare.Dishwasher.EnumType.KeySoundLevel.Medium',
        'Dishcare.Dishwasher.EnumType.KeySoundLevel.High',
      ],
      displayvalues: ['关', '低', '中', '高'],
      access: 'readWrite',
    },
    type: 'Dishcare.Dishwasher.EnumType.KeySoundLevel',
    displayvalue: '中',
    value: 'Dishcare.Dishwasher.EnumType.KeySoundLevel.Medium',
    mediumDescription: '按键时的音量。',
  },
  'Dishcare.Dishwasher.Setting.WaterHardness': {
    name: '水硬度',
    key: 'Dishcare.Dishwasher.Setting.WaterHardness',
    constraints: {
      allowedvalues: [
        'Dishcare.Dishwasher.EnumType.WaterHardness.H00',
        'Dishcare.Dishwasher.EnumType.WaterHardness.H01',
        'Dishcare.Dishwasher.EnumType.WaterHardness.H02',
        'Dishcare.Dishwasher.EnumType.WaterHardness.H03',
        'Dishcare.Dishwasher.EnumType.WaterHardness.H04',
        'Dishcare.Dishwasher.EnumType.WaterHardness.H05',
        'Dishcare.Dishwasher.EnumType.WaterHardness.H06',
        'Dishcare.Dishwasher.EnumType.WaterHardness.H07',
      ],
      displayvalues: [
        '°dH 0-6 软水 (0-1,1 mmol/l)',
        '°dH 7-8 软水 (1,2-1,4 mmol/l)',
        '°dH 9-10 中等水 (1,5-1,8 mmol/l)',
        '°dh 11-12 中等水 (1,9-2,1 mmol/l)',
        '°dH 13-16 中等水 (2,2-2,9 mmol/l)',
        '°dH 17-21 硬水 (3,0-3,7 mmol/l)',
        '°dH 22-30 硬水 (3,8-5,4 mmol/l)',
        '°dH 31-50 硬水 (5,5-8,9 mmol/l)',
      ],
      access: 'readWrite',
    },
    type: 'Dishcare.Dishwasher.EnumType.WaterHardness',
    displayvalue: '°dH 13-16 中等水 (2,2-2,9 mmol/l)',
    value: 'Dishcare.Dishwasher.EnumType.WaterHardness.H04',
    mediumDescription: '设置水硬度。使用3合1洗涤块时，请选择最低档设置。',
  },
  'Dishcare.Dishwasher.Setting.InfoLight': {
    name: '信息灯',
    key: 'Dishcare.Dishwasher.Setting.InfoLight',
    constraints: {
      access: 'readWrite',
    },
    type: 'Boolean',
    value: true,
    mediumDescription: '灯光表示冲洗程序正在进行中。',
  },
  'Dishcare.Dishwasher.Setting.SpeedOnDemand': {
    name: '加速省时',
    key: 'Dishcare.Dishwasher.Setting.SpeedOnDemand',
    constraints: {
      access: 'read',
    },
    type: 'Boolean',
    value: false,
    mediumDescription: '附加功能在程序运行中可以随时被激活。',
  },
  'Dishcare.Dishwasher.Setting.FlexSpray.Custom.FrontLeft': {
    name: '前左方',
    key: 'Dishcare.Dishwasher.Setting.FlexSpray.Custom.FrontLeft',
    constraints: {
      allowedvalues: [
        'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
        'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
      ],
      displayvalues: ['轻柔', '标准', '强力'],
      access: 'readWrite',
    },
    type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
    displayvalue: '强力',
    value: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
    mediumDescription: '前左方',
  },
  'Dishcare.Dishwasher.Setting.FlexSpray.Custom.BackLeft': {
    key: 'Dishcare.Dishwasher.Setting.FlexSpray.Custom.BackLeft',
    constraints: {
      allowedvalues: [
        'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
        'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
      ],
      displayvalues: ['轻柔', '标准', '强力'],
      access: 'readWrite',
    },
    type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
    displayvalue: '强力',
    value: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
  },
  'Dishcare.Dishwasher.Setting.FlexSpray.Custom.BackRight': {
    key: 'Dishcare.Dishwasher.Setting.FlexSpray.Custom.BackRight',
    constraints: {
      allowedvalues: [
        'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
        'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
      ],
      displayvalues: ['轻柔', '标准', '强力'],
      access: 'readWrite',
    },
    type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
    displayvalue: '强力',
    value: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
  },
  'Dishcare.Dishwasher.Setting.FlexSpray.Custom.FrontRight': {
    key: 'Dishcare.Dishwasher.Setting.FlexSpray.Custom.FrontRight',
    constraints: {
      allowedvalues: [
        'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
        'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
      ],
      displayvalues: ['轻柔', '标准', '强力'],
      access: 'readWrite',
    },
    type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
    displayvalue: '强力',
    value: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
  },
}
export const DemoSupportedCommands: Array<ApplianceCommand> = [
  {
    key: 'BSH.Common.Command.DeactivateWiFi',
    name: '关闭无线网络',
  },
  {
    key: 'BSH.Common.Command.AcknowledgeEvent',
    name: ' 确定',
  },
  {
    key: 'BSH.Common.Command.RejectEvent',
    name: '中止',
  },
  {
    key: 'BSH.Common.Command.AbortProgram',
    name: '取消',
  },
  {
    key: 'BSH.Common.Command.ApplyFactoryReset',
    name: '重置为出厂设置',
  },
  {
    key: 'BSH.Common.Command.DeactivateRemoteControlStart',
    name: '停用远程启动',
  },
  {
    key: 'BSH.Common.Command.AllowSoftwareUpdateLocalWiFi',
    name: '允许本地无线网络更新',
  },
  {
    key: 'BSH.Common.Command.AllowSoftwareUpdate',
  },
  {
    key: 'BSH.Common.Command.AllowSoftwareDownload',
    name: '允许下载软件',
  },
  {
    key: 'BSH.Common.Command.SetWaterHardness',
    name: '设置水硬度',
  },
]

/**
 * 程序
 */
export const DemoAllPrograms: ApplianceProgram.Scope[] = [
  {
    constraints: {
      execution: 'selectandstart',
    },
    key: 'Dishcare.Dishwasher.Program.Auto2',
    name: '智能洗',
    mediumDescription: '传感器优化的程序， 用于一般油腻的餐具。',
  },
  {
    constraints: {
      execution: 'selectandstart',
    },
    key: 'Dishcare.Dishwasher.Program.Eco50',
    name: '节能洗',
    mediumDescription: '最节能的程序， 用于一般油腻的餐具。',
  },
  {
    constraints: {
      execution: 'selectandstart',
    },
    key: 'Dishcare.Dishwasher.Program.Glas40',
    name: '晶柔洗',
    mediumDescription: '温和清洗精致餐具，例如低温清洁高档玻璃杯。通过延长干燥时间，温和地烘干餐具。',
  },
  {
    constraints: {
      execution: 'selectandstart',
    },
    key: 'Dishcare.Dishwasher.Program.Quick45',
    name: '超快洗',
    mediumDescription: '时间优化的程序，用于 少油的餐具或玻璃类。',
  },
  {
    constraints: {
      execution: 'selectandstart',
    },
    key: 'Dishcare.Dishwasher.Program.PreRinse',
    name: '预冲洗',
    mediumDescription: '不添加洗涤剂用冷水冲洗餐具。',
  },
  {
    constraints: {
      execution: 'selectandstart',
    },
    key: 'Dishcare.Dishwasher.Program.MagicDaily',
    name: '日常洗',
    mediumDescription: '时间优化的程序， 强劲洗涤与烘干， 适合日常使用。',
  },
  {
    constraints: {
      execution: 'selectandstart',
    },
    key: 'Dishcare.Dishwasher.Program.MachineCare',
    name: '自清洁',
    mediumDescription: '洗碗机保养程序， 清空机器后配合 机体专用清洁剂使用。',
  },
  {
    constraints: {
      execution: 'selectandstart',
    },
    key: 'Dishcare.Dishwasher.Program.SteamFresh',
    name: '单烘干',
    mediumDescription: '热水漂洗并烘干， 适用于长期未用的干净餐具。',
  },
  {
    constraints: {
      execution: 'selectandstart',
    },
    key: 'Dishcare.Dishwasher.Program.MaximumCleaning',
    name: '超净洗',
    mediumDescription: '强净程序，用于多油的 餐具和锅具。',
  },
  {
    constraints: {
      execution: 'selectandstart',
    },
    key: 'Dishcare.Dishwasher.Program.QuickD',
    name: '快洗烘',
    mediumDescription: '专用于快速洗涤和烘干轻微脏污的餐具。',
  },
  {
    constraints: {
      execution: 'selectandstart',
    },
    key: 'Dishcare.Dishwasher.Program.NightWash',
    name: '夜静洗',
    mediumDescription: '超级安静，清洗和烘干中等脏污餐具。',
  },
]
export const DemoAvailable: DemoAvailableParameter = {
  'Dishcare.Dishwasher.Program.Auto2': {
    key: 'Dishcare.Dishwasher.Program.Auto2',
    name: '智能洗',
    options: [
      {
        key: 'BSH.Common.Option.EstimatedTotalProgramTime',
        value: 10200,
        unit: 'seconds',
        name: '预计程序持续时间',
      },
      {
        name: '开始时间',
        key: 'BSH.Common.Option.StartInRelative',
        constraints: {
          min: 0,
          max: 86400,
        },
        unit: 'seconds',
        type: 'Int',
      },
      {
        key: 'Dishcare.Dishwasher.Option.HygienePlus',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾除菌',
      },
      {
        key: 'Dishcare.Dishwasher.Option.HalfLoad',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '轻载模式',
      },
      {
        key: 'Dishcare.Dishwasher.Option.VarioSpeedPlus',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '加速省时',
      },
      {
        key: 'Dishcare.Dishwasher.Option.BrillianceDry',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾烘干',
      },
      {
        key: 'Dishcare.Dishwasher.Option.StorageFunction',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾储存',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.Type',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Type',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Front',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Back',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Custom',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Individual',
          ],
          displayvalues: ['前方', '后方', '自定义', '个人设置'],
          liveupdate: true,
        },
        name: '精控强洗',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
    ],
  },
  'Dishcare.Dishwasher.Program.Eco50': {
    key: 'Dishcare.Dishwasher.Program.Eco50',
    name: '节能洗',
    options: [
      {
        key: 'BSH.Common.Option.EstimatedTotalProgramTime',
        value: 16800,
        unit: 'seconds',
        name: '预计程序持续时间',
      },
      {
        name: '开始时间',
        key: 'BSH.Common.Option.StartInRelative',
        constraints: {
          min: 0,
          max: 86400,
        },
        unit: 'seconds',
        type: 'Int',
      },
      {
        key: 'Dishcare.Dishwasher.Option.HygienePlus',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾除菌',
      },
      {
        key: 'Dishcare.Dishwasher.Option.HalfLoad',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '轻载模式',
      },
      {
        key: 'Dishcare.Dishwasher.Option.VarioSpeedPlus',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '加速省时',
      },
      {
        key: 'Dishcare.Dishwasher.Option.BrillianceDry',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾烘干',
      },
      {
        key: 'Dishcare.Dishwasher.Option.StorageFunction',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾储存',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.Type',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Type',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Front',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Back',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Custom',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Individual',
          ],
          displayvalues: ['前方', '后方', '自定义', '个人设置'],
          liveupdate: true,
        },
        name: '精控强洗',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
    ],
  },
  'Dishcare.Dishwasher.Program.Glas40': {
    key: 'Dishcare.Dishwasher.Program.Glas40',
    name: '晶柔洗',
    options: [
      {
        key: 'BSH.Common.Option.EstimatedTotalProgramTime',
        value: 16800,
        unit: 'seconds',
        name: '预计程序持续时间',
      },
      {
        name: '开始时间',
        key: 'BSH.Common.Option.StartInRelative',
        constraints: {
          min: 0,
          max: 86400,
        },
        unit: 'seconds',
        type: 'Int',
      },
      {
        key: 'Dishcare.Dishwasher.Option.HalfLoad',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '轻载模式',
      },
      {
        key: 'Dishcare.Dishwasher.Option.VarioSpeedPlus',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '加速省时',
      },
      {
        key: 'Dishcare.Dishwasher.Option.BrillianceDry',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾烘干',
      },
      {
        key: 'Dishcare.Dishwasher.Option.StorageFunction',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾储存',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.Type',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Type',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Front',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Back',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Custom',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Individual',
          ],
          displayvalues: ['前方', '后方', '自定义', '个人设置'],
          liveupdate: true,
        },
        name: '精控强洗',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
    ],
  },
  'Dishcare.Dishwasher.Program.Quick45': {
    key: 'Dishcare.Dishwasher.Program.Quick45',
    name: '超快洗',
    options: [
      {
        key: 'BSH.Common.Option.EstimatedTotalProgramTime',
        value: 6300,
        unit: 'seconds',
        name: '预计程序持续时间',
      },
      {
        name: '开始时间',
        key: 'BSH.Common.Option.StartInRelative',
        constraints: {
          min: 0,
          max: 86400,
        },
        unit: 'seconds',
        type: 'Int',
      },
      {
        key: 'Dishcare.Dishwasher.Option.BrillianceDry',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾烘干',
      },
      {
        key: 'Dishcare.Dishwasher.Option.StorageFunction',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾储存',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.Type',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Type',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Front',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Back',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Custom',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Individual',
          ],
          displayvalues: ['前方', '后方', '自定义', '个人设置'],
          liveupdate: true,
        },
        name: '精控强洗',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
    ],
  },
  'Dishcare.Dishwasher.Program.PreRinse': {
    key: 'Dishcare.Dishwasher.Program.PreRinse',
    name: '预冲洗',
    options: [
      {
        key: 'BSH.Common.Option.EstimatedTotalProgramTime',
        value: 900,
        unit: 'seconds',
        name: '预计程序持续时间',
      },
      {
        name: '开始时间',
        key: 'BSH.Common.Option.StartInRelative',
        constraints: {
          min: 0,
          max: 86400,
        },
        unit: 'seconds',
        type: 'Int',
      },
      {
        key: 'Dishcare.Dishwasher.Option.StorageFunction',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾储存',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.Type',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Type',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Front',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Back',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Custom',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Individual',
          ],
          displayvalues: ['前方', '后方', '自定义', '个人设置'],
          liveupdate: true,
        },
        name: '精控强洗',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
    ],
  },
  'Dishcare.Dishwasher.Program.MagicDaily': {
    key: 'Dishcare.Dishwasher.Program.MagicDaily',
    name: '日常洗',
    options: [
      {
        key: 'BSH.Common.Option.EstimatedTotalProgramTime',
        value: 9300,
        unit: 'seconds',
        name: '预计程序持续时间',
      },
      {
        name: '开始时间',
        key: 'BSH.Common.Option.StartInRelative',
        constraints: {
          min: 0,
          max: 86400,
        },
        unit: 'seconds',
        type: 'Int',
      },
      {
        key: 'Dishcare.Dishwasher.Option.HygienePlus',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾除菌',
      },
      {
        key: 'Dishcare.Dishwasher.Option.HalfLoad',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '轻载模式',
      },
      {
        key: 'Dishcare.Dishwasher.Option.VarioSpeedPlus',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '加速省时',
      },
      {
        key: 'Dishcare.Dishwasher.Option.BrillianceDry',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾烘干',
      },
      {
        key: 'Dishcare.Dishwasher.Option.StorageFunction',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾储存',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.Type',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Type',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Front',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Back',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Custom',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Individual',
          ],
          displayvalues: ['前方', '后方', '自定义', '个人设置'],
          liveupdate: true,
        },
        name: '精控强洗',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
    ],
  },
  'Dishcare.Dishwasher.Program.MachineCare': {
    key: 'Dishcare.Dishwasher.Program.MachineCare',
    name: '自清洁',
    options: [
      {
        key: 'BSH.Common.Option.EstimatedTotalProgramTime',
        value: 900,
        unit: 'seconds',
        name: '预计程序持续时间',
      },
      {
        name: '开始时间',
        key: 'BSH.Common.Option.StartInRelative',
        constraints: {
          min: 0,
          max: 86400,
        },
        unit: 'seconds',
        type: 'Int',
      },
      {
        key: 'Dishcare.Dishwasher.Option.StorageFunction',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾储存',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.Type',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Type',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Front',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Back',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Custom',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Individual',
          ],
          displayvalues: ['前方', '后方', '自定义', '个人设置'],
          liveupdate: true,
        },
        name: '精控强洗',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
    ],
  },
  'Dishcare.Dishwasher.Program.SteamFresh': {
    key: 'Dishcare.Dishwasher.Program.SteamFresh',
    name: '单烘干',
    options: [
      {
        key: 'BSH.Common.Option.EstimatedTotalProgramTime',
        value: 10200,
        unit: 'seconds',
        name: '预计程序持续时间',
      },
      {
        name: '开始时间',
        key: 'BSH.Common.Option.StartInRelative',
        constraints: {
          min: 0,
          max: 86400,
        },
        unit: 'seconds',
        type: 'Int',
      },
      {
        key: 'Dishcare.Dishwasher.Option.StorageFunction',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾储存',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.Type',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Type',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Front',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Back',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Custom',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Individual',
          ],
          displayvalues: ['前方', '后方', '自定义', '个人设置'],
          liveupdate: true,
        },
        name: '精控强洗',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
    ],
  },
  'Dishcare.Dishwasher.Program.MaximumCleaning': {
    key: 'Dishcare.Dishwasher.Program.MaximumCleaning',
    name: '超净洗',
    options: [
      {
        key: 'BSH.Common.Option.EstimatedTotalProgramTime',
        value: 10500,
        unit: 'seconds',
        name: '预计程序持续时间',
      },
      {
        name: '开始时间',
        key: 'BSH.Common.Option.StartInRelative',
        constraints: {
          min: 0,
          max: 86400,
        },
        unit: 'seconds',
        type: 'Int',
      },
      {
        key: 'Dishcare.Dishwasher.Option.HygienePlus',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾除菌',
      },
      {
        key: 'Dishcare.Dishwasher.Option.HalfLoad',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '轻载模式',
      },
      {
        key: 'Dishcare.Dishwasher.Option.VarioSpeedPlus',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '加速省时',
      },
      {
        key: 'Dishcare.Dishwasher.Option.StorageFunction',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾储存',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.Type',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Type',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Front',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Back',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Custom',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Individual',
          ],
          displayvalues: ['前方', '后方', '自定义', '个人设置'],
          liveupdate: true,
        },
        name: '精控强洗',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
    ],
  },
  'Dishcare.Dishwasher.Program.QuickD': {
    key: 'Dishcare.Dishwasher.Program.QuickD',
    name: '快洗烘',
    options: [
      {
        key: 'BSH.Common.Option.EstimatedTotalProgramTime',
        value: 16800,
        unit: 'seconds',
        name: '预计程序持续时间',
      },
      {
        key: 'Dishcare.Dishwasher.Option.BrillianceDry',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾烘干',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.Type',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Type',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Front',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Back',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Custom',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Individual',
          ],
          displayvalues: ['前方', '后方', '自定义', '个人设置'],
          liveupdate: true,
        },
        name: '精控强洗',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        name: '开始时间',
        key: 'BSH.Common.Option.StartInRelative',
        constraints: {
          min: 0,
          max: 86400,
        },
        unit: 'seconds',
        type: 'Int',
      },
      {
        key: 'Dishcare.Dishwasher.Option.StorageFunction',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾储存',
      },
    ],
  },
  'Dishcare.Dishwasher.Program.NightWash': {
    key: 'Dishcare.Dishwasher.Program.NightWash',
    name: '夜静洗',
    options: [
      {
        key: 'BSH.Common.Option.EstimatedTotalProgramTime',
        value: 16800,
        unit: 'seconds',
        name: '预计程序持续时间',
      },
      {
        key: 'Dishcare.Dishwasher.Option.HalfLoad',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '轻载模式',
      },
      {
        key: 'Dishcare.Dishwasher.Option.HygienePlus',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾除菌',
      },
      {
        key: 'Dishcare.Dishwasher.Option.BrillianceDry',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾烘干',
      },
      {
        key: 'Dishcare.Dishwasher.Option.VarioSpeedPlus',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '加速省时',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.Type',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Type',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Front',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Back',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Custom',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Type.Individual',
          ],
          displayvalues: ['前方', '后方', '自定义', '个人设置'],
          liveupdate: true,
        },
        name: '精控强洗',
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackLeft',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.BackRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        key: 'Dishcare.Dishwasher.Option.FlexSpray.FrontRight',
        type: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity',
        constraints: {
          allowedvalues: [
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Delicate',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
            'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Heavy',
          ],
          displayvalues: ['轻柔', '标准', '强力'],
          liveupdate: true,
          default: 'Dishcare.Dishwasher.EnumType.FlexSpray.Intensity.Normal',
        },
      },
      {
        name: '开始时间',
        key: 'BSH.Common.Option.StartInRelative',
        constraints: {
          min: 0,
          max: 86400,
        },
        unit: 'seconds',
        type: 'Int',
      },
      {
        key: 'Dishcare.Dishwasher.Option.StorageFunction',
        type: 'Boolean',
        constraints: {
          default: false,
          liveupdate: true,
        },
        name: '晶蕾储存',
      },
    ],
  },
}
export const DemoHistoryPrograms: Array<HistoryProgram> = [
  {
    key: 'Dishcare.Dishwasher.Program.MagicDaily',
    name: '日常洗',
    programType: 0,
    serverTime: '2023-06-01 10:00:55',
    duration: 7530,
    options: [
      {
        key: 'Dishcare.Dishwasher.Option.BrillianceDry',
        name: '晶蕾烘干',
        value: true,
        displayvalue: null,
      },
      {
        key: 'Dishcare.Dishwasher.Option.HalfLoad',
        name: '轻载模式',
        value: true,
        displayvalue: null,
      },
    ],
  },
  {
    key: 'Dishcare.Dishwasher.Program.MagicDaily',
    name: '日常洗',
    programType: 0,
    serverTime: '2023-05-27 09:51:52',
    duration: 7582,
    options: [
      {
        key: 'Dishcare.Dishwasher.Option.BrillianceDry',
        name: '晶蕾烘干',
        value: true,
        displayvalue: null,
      },
      {
        key: 'Dishcare.Dishwasher.Option.VarioSpeedPlus',
        name: '加速省时',
        value: false,
        displayvalue: null,
      },
    ],
  },
  {
    key: 'Dishcare.Dishwasher.Program.MachineCare',
    name: '自清洁',
    programType: 0,
    serverTime: '2023-05-28 02:03:27',
    duration: 231,
    options: [
      {
        key: 'Dishcare.Dishwasher.Option.BrillianceDry',
        name: '晶蕾烘干',
        value: false,
        displayvalue: null,
      },
      {
        key: 'Dishcare.Dishwasher.Option.VarioSpeedPlus',
        name: '加速省时',
        value: false,
        displayvalue: null,
      },
    ],
  },
]
/**
 * 程序下载
 */
export type DemoProgramLoadType = {
  downloadVib: string
  featureKey: string
  name: string
  paymentRequired: number
  sourceId: string
  status: number
  title: string
  defaultUrl: string
  detail: {
    baseData: {
      title: string[]
      items: string[]
    }
    technicalData: {
      'Consumption.Energy': number
      'Consumption.Water': number
      'Runtime.Total': number
      'Temperature.Washing.Max': number
    }
  }
}
export const DemoProgramLoadList: DemoProgramLoadType[] = [
  {
    downloadVib: 'DUMCON0003',
    featureKey: 'Dishcare.Dishwasher.Program.NightWash',
    name: '夜静洗',
    paymentRequired: 0,
    sourceId: 'd28bf260-38bd-438e-95f3-e5da9347fd89',
    status: 2,
    title: 'Silence',
    defaultUrl: 'https://media3.bsh-group.cn/Product_Shots/600x600/21862046_Night_Program_def.png',
    detail: {
      baseData: {
        title: ['睡眠级静音：比低声耳语还轻柔的洗涤噪音！'],
        items: [
          '安静的洗涤程序',
          '低噪音运行，贴心呵护你的睡眠。',
          '低能耗洗涤，洗碗也能促进可持续发展',
          '为开放式厨房定制的安静洗涤程序',
        ],
      },
      technicalData: {
        'Consumption.Energy': 850,
        'Consumption.Water': 10500,
        'Runtime.Total': 14457,
        'Temperature.Washing.Max': 55,
      },
    },
  },
  {
    downloadVib: 'SZ30HC007',
    featureKey: 'Dishcare.Dishwasher.Program.QuickD',
    name: '快洗烘',
    paymentRequired: 0,
    sourceId: '456dd494-9bb0-4f6a-add5-7afba11585bb',
    status: 2,
    title: 'Quick D',
    defaultUrl: 'https://media3.bsh-group.cn/Product_Shots/600x600/20285241_Quick%20D_master_def.png',
    detail: {
      baseData: {
        title: [],
        items: ['仅需45分钟，洁净触手可及', '特别适用于轻度脏污的餐具'],
      },
      technicalData: {
        'Consumption.Energy': 900,
        'Consumption.Water': 10500,
        'Runtime.Total': 2991,
        'Temperature.Washing.Max': 45,
      },
    },
  },
]

export default <DemoDatasource>{
  detail: DemoDetail,
  settings: DemoSettings,
  detailSettings: DemoSettingsAvailable,
  commands: DemoSupportedCommands,
  allPrograms: DemoAllPrograms,
  available: DemoAvailable,
  historyPrograms: DemoHistoryPrograms,
  programLoadList: DemoProgramLoadList,
}
